function [info] = colordist2(cieluv, height, width)

dist = zeros(idivide(int32(height*width), 100), 1);
diff = zeros(idivide(int32(height*width), 100), 1);
cur = 0;
for top = [1:10:height]
    for left = [1:10:width]
        avg = [0 0 0];
        for i = top:min(top+9,height)
            for j = left:min(left+9,width)
                avg = avg + cieluv(i, j);
            end
        end
        avg = avg / 100;
        
        cur_dist = 0;
        cur_diff = 0;
        for i = top:min(top+9,height)
            for j = left:min(left+9,width)
                tmp = norm(cieluv(i, j) - avg);
                cur_dist = cur_dist + tmp;
                cur_diff = max(cur_diff, tmp);
            end
        end
        cur = cur + 1;
        dist(cur) = cur_dist / 100;
        diff(cur) = cur_diff;
    end
end
info = [sum(dist)/size(dist,2) std(dist) sum(diff)/size(diff,2) std(diff)];
